import request from '@/utils/request'

// 查询动作信息维护表列表
export function listAction(query) {
  return request({
    url: '/service/action/list',
    method: 'get',
    params: query
  })
}

// 查询动作信息维护表详细
export function getAction(actionId) {
  return request({
    url: '/service/action/' + actionId,
    method: 'get'
  })
}

// 新增动作信息维护表
export function addAction(data) {
  return request({
    url: '/service/action',
    method: 'post',
    data: data
  })
}

// 修改动作信息维护表
export function updateAction(data) {
  return request({
    url: '/service/action',
    method: 'put',
    data: data
  })
}

// 删除动作信息维护表
export function delAction(actionId) {
  return request({
    url: '/service/action/' + actionId,
    method: 'delete'
  })
}
